package com.vic.entity;
import java.io.Serializable;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.vic.enums.DateTimePatternEnum;
import com.vic.utils.DateUtils;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
 * @description：商品信息
 * @date：2023-05-28
 * @author：Vic Ly
 */
public class GoodsInfo implements Serializable {
	/**
	 * 主键
	 */
	private Integer id;
	/**
	 * 商品编码
	 */
	@JsonIgnore
	private String goodsCode;
	/**
	 * 商品名称
	 */
	private String goodsName;
	/**
	 * 商品单价
	 */
	private Double goodsPrice;
	/**
	 * 商品库存
	 */
	private Integer goodsStock;
	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date creatTime;
	/**
	 * 密码
	 */
	@JsonIgnore
	private String password;
	/**
	 * 修改日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date modifyDate;

	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getId() {
		return id;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}
	public String getGoodsCode() {
		return goodsCode;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsPrice(Double goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	public Double getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsStock(Integer goodsStock) {
		this.goodsStock = goodsStock;
	}
	public Integer getGoodsStock() {
		return goodsStock;
	}

	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}
	public Date getCreatTime() {
		return creatTime;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	public String getPassword() {
		return password;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public Date getModifyDate() {
		return modifyDate;
	}

	@Override
	public String toString() {
		return "GoodsInfo{" +
			"id = " + id+"  " +
			"goodsCode = " + goodsCode+"  " +
			"goodsName = " + goodsName+"  " +
			"goodsPrice = " + goodsPrice+"  " +
			"goodsStock = " + goodsStock+"  " +
			"creatTime = " + creatTime+"  " +
			"password = " + password+"  " +
			"modifyDate = " + modifyDate+"  " +
		"}";
	}
}